import { ApiHideProperty, ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty } from 'class-validator';

export class CreateOrderVo {
  @ApiProperty({ description: '购物车id' })
  @IsNotEmpty({ message: "购物车id不能为空" })
  cartIdList: number[]

  @ApiProperty({ example: "1", description: "收货地址id" })
  @IsNotEmpty({ message: "收货地址id不能为空" })
  deliveryAddressId: number

  // 用户id,系统自动赋值
  @ApiHideProperty()
  userId: number
}